using System.ComponentModel.DataAnnotations;

namespace WorkFlowCore.BusinessDemo.Web.Models
{
    public class ChangePasswordPostViewModel
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "请输入新密码")]
        [DataType(DataType.Password)]
        public string NewPassword { get; set; }

        [Required(ErrorMessage = "请确认新密码")]
        [DataType(DataType.Password)]
        [Compare("NewPassword", ErrorMessage = "两次输入的密码不一致")]
        public string ConfirmPassword { get; set; }
    }
}
